// import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

//插入饿了么UI
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'

// 引入所有图标，并命名为 Icons
import * as Icons from '@element-plus/icons-vue' 

const app = createApp(App)

// 通过遍历的方式注册所有 svg组件，会牺牲一点点性能
for (let i in Icons) {
    app.component(i, Icons[i])
}

app
.use(router)
.use(ElementPlus,{
    locale: zhCn
})
.use(VueAxios, axios)

app.mount('#app')
